    /***
     * @description axios封装
     * @file api.ts
     * @author andy
     * @date 2024/3/22 16:40
     */
// file:api.s
// 1、导入axios以及拦截器
import service from './request'

// 获取手机验证码接口
export const getCode = (userMobile:any) => {
    return service({
        url: '/user/user/getCode/' + userMobile,
        method: 'post'
    })
};


// 批量删除接口
export const userDel = (ids:any) => {
    return service({
        url: '/user/user/userDel/' + ids,
        method: 'post'
    })
};


// 批量修改正常接口
export const sjUser = (ids:any) => {
    return service({
        url: '/user/user/sjUser/' + ids,
        method: 'post'
    })
};


// 手机号登录接口
export const mobileLogin = (data:any) => {
    return service({
        url: '/user/user/mobileLogin',
        method: 'post',
        data
    })
};


// 用户登录接口
export const userLogin = (data:any) => {
    return service({
        url: '/user/user/userLogin',
        method: 'post',
        data
    })
};


// 用户列表接口
export const userList = (data:any) => {
    return service({
        url: '/user/user/userList',
        method: 'post',
        data
    })
};


// 用户修改接口
export const userEdit = (data:any) => {
    return service({
        url: '/user/user/userEdit',
        method: 'post',
        data
    })
};


// 用户添加接口
export const userSave = (data:any) => {
    return service({
        url: '/user/user/userSave',
        method: 'post',
        data
    })
};


